import 'package:stage_app/model/user/user_login_result_entity.dart';

userLoginResultEntityFromJson(UserLoginResultEntity data, Map<String, dynamic> json) {
	if (json['msg'] != null) {
		data.msg = json['msg']?.toString();
	}
	if (json['code'] != null) {
		data.code = json['code']?.toInt();
	}
	if (json['expire'] != null) {
		data.expire = json['expire']?.toInt();
	}
	if (json['token'] != null) {
		data.token = json['token']?.toString();
	}
	return data;
}

Map<String, dynamic> userLoginResultEntityToJson(UserLoginResultEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['expire'] = entity.expire;
	data['token'] = entity.token;
	return data;
}